﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="InschrijfFormulier.aspx.cs" Inherits="ProeftuinICT.InschrijfFormulier" %>


<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <title>Proeftuin ICT - Inschrijven</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="BodyId" runat="server">
    <body>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="BodyContent" runat="server">
    <h2>Personalia</h2>
    <hr /><p>
    <asp:Label ID="lblNaam" runat="server" Text="Naam*"></asp:Label>
    <asp:TextBox ID="txtNaam" runat="server" Height="16px"></asp:TextBox>
    <asp:RequiredFieldValidator ID="NaamCheck" runat="server" 
        ErrorMessage="Dit veld moet worden ingevuld"
         ControlToValidate="txtNaam"
         Display="Dynamic" ForeColor="Red"
         ></asp:RequiredFieldValidator>
    &nbsp;<asp:RegularExpressionValidator ID="NaamDataCheck" runat="server" 
            ErrorMessage="Dit is geen geldige naam."
            ControlToValidate="txtNaam"
            Display = "Dynamic" 
            ValidationExpression="[a-zA-Z]{3,20}" 
            ForeColor="Red"
            ></asp:RegularExpressionValidator>
    <br />
    <asp:Label ID="lblAdres" runat="server" Text="Adres*"></asp:Label>
    <asp:TextBox ID="txtAdres" runat="server" Height="16px"></asp:TextBox>
    <asp:RequiredFieldValidator ID="AdresCheck" runat="server" 
        ErrorMessage="Dit veld moet worden ingevuld"
         ControlToValidate="txtAdres"
         Display="Dynamic" ForeColor="Red"
         ></asp:RequiredFieldValidator>
         <br />
        Land<asp:RadioButtonList 
            ID="RBLand" runat="server" 
            onselectedindexchanged="RadioButtonList3_SelectedIndexChanged" 
            RepeatDirection="Horizontal" RepeatLayout="Flow">
            <asp:ListItem Selected="True">NL</asp:ListItem>
            <asp:ListItem>Anders</asp:ListItem>
        </asp:RadioButtonList>
        <br />
    <asp:Label ID="lblPost" runat="server" Text="Postcode*"></asp:Label>
    <asp:TextBox ID="txtPost" runat="server" Height="16px" Width="89px"></asp:TextBox>
    <asp:RequiredFieldValidator ID="PostCheck" runat="server" 
        ErrorMessage="Dit veld moet worden ingevuld"
         ControlToValidate="txtPost"
         Display="Dynamic"  ForeColor="Red"
         ></asp:RequiredFieldValidator>

        &nbsp;<asp:CustomValidator ID="CustomValidator1" runat="server" 
            ErrorMessage="Dit is geen geldige postcode, vul deze als volgt in: 1234xa" 
            ControlToValidate=""
            onservervalidate="CustomValidator1_ServerValidate" ForeColor="Red" ValidationGroup="Servergroep" 
            ></asp:CustomValidator>

    </p>
    <p>

    <asp:Label ID="lblWoon" runat="server" Text="Woonplaats*"></asp:Label>
    <asp:TextBox ID="txtWoon" runat="server" Height="16px"></asp:TextBox>
    <asp:RequiredFieldValidator ID="WoonCheck" runat="server" 
        ErrorMessage="Dit veld moet worden ingevuld"
         ControlToValidate="txtWoon"
         Display="Dynamic" ForeColor="Red"
         ></asp:RequiredFieldValidator>
    <br />


    <asp:Label ID="lblTel" runat="server" Text="Tel. Nr.*"></asp:Label>
    <asp:TextBox ID="txtTel" runat="server" Height="16px" Width="89px"></asp:TextBox>
    <asp:RegularExpressionValidator ID="TelVal" runat="server" 
         ErrorMessage="Dit is geen geldig telefoonnummer"
         ControlToValidate="txtTel"
         Display="Dynamic" ValidationExpression="((\d{10})|(\d{11})|(\d{13}))" 
             ForeColor="Red"     
         ></asp:RegularExpressionValidator>
    &nbsp;<asp:RequiredFieldValidator ID="TelCheck" runat="server" 
        ErrorMessage="Dit veld moet als volgt worden ingevuld: 1234567890"
         ControlToValidate="txtTel"
         Display="Dynamic" ForeColor="Red"
         ></asp:RequiredFieldValidator>

    </p>
    <p>

    <asp:Label ID="lblMobiel" runat="server" Text="Mobiel*"></asp:Label>
    <asp:TextBox ID="txtMobiel" runat="server" Height="16px"></asp:TextBox>
    <asp:RequiredFieldValidator ID="MobielCheck" runat="server" 
        ErrorMessage="Dit veld moet worden ingevuld"
         ControlToValidate="txtMobiel"
         Display="Dynamic"  ForeColor="Red"
         ></asp:RequiredFieldValidator>


   &nbsp;<asp:RegularExpressionValidator ID="Mobielval" runat="server" 
       ErrorMessage="Dit is geen correct mobiel nummer, vul deze als volgt in: 06123456789"
       Display="Dynamic"
       ControlToValidate="txtMobiel" ValidationExpression="\d{10}" 
            ForeColor="Red"
       ></asp:RegularExpressionValidator>
    <br />
    <asp:Label ID="lblMail" runat="server" Text="E-Mail*"></asp:Label>
    <asp:TextBox ID="txtMail" runat="server" Height="16px"></asp:TextBox>
    <asp:RequiredFieldValidator ID="MailCheck" runat="server" 
        ErrorMessage="Dit veld moet worden ingevuld"
         ControlToValidate="txtMail"
         Display="Dynamic" ForeColor="Red"
         ></asp:RequiredFieldValidator>
        &nbsp;<asp:RegularExpressionValidator ID="EmailVal" runat="server" 
            ErrorMessage="Dit is geen geldig e-mail adres"
            Display="Dynamic"
            ControlToValidate="txtMail"
            ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
            ForeColor="Red"
            ></asp:RegularExpressionValidator>
    <br />
    <asp:Label ID="lblStudNr" runat="server" Text="Studentnummer*"></asp:Label>
    <asp:TextBox ID="txtStudNr" runat="server" Height="16px"></asp:TextBox>
    <asp:RequiredFieldValidator ID="StudNrCheck" runat="server" 
        ErrorMessage="Dit veld moet worden ingevuld"
         ControlToValidate="txtStudNr"
         Display="Dynamic" ForeColor="Red"
         ></asp:RequiredFieldValidator>
        &nbsp;<asp:RegularExpressionValidator ID="StudNrVal" runat="server" 
            ErrorMessage="Dit is geen bestaand student nummer"
            ControlToValidate="txtStudNr"
            Display="Dynamic"
            ValidationExpression="\d{7}" ForeColor="Red"
         ></asp:RegularExpressionValidator>
    <br />
    Opleiding
    <asp:RadioButtonList ID="RadioButtonList1" runat="server" 
        RepeatDirection="Horizontal" Width="90px">
        <asp:ListItem Selected="True" Value="1">TI</asp:ListItem>
        <asp:ListItem Value="0">I</asp:ListItem>
    </asp:RadioButtonList>
    </p>
    <p>
        &nbsp;</p>

    <h2>Voorkeur</h2>
    <hr />
    <p>Soort Opdracht*
                
        <asp:checkboxlist runat="server" Height="46px"  
            RepeatColumns="2" 
            RepeatDirection="Horizontal" Width="312px" ID="OpdrachtSoort" 
            onselectedindexchanged="OpdrachtSoort_SelectedIndexChanged">
            <asp:ListItem Value="Onderzoek">Onderzoek</asp:ListItem>
            <asp:ListItem Value="Ontwerp">Ontwerp</asp:ListItem>
            <asp:ListItem Value="Programmeren">Programmeren</asp:ListItem>
            <asp:ListItem Value="Implementatie">Implementatie</asp:ListItem>
        </asp:checkboxlist>   
        <asp:CustomValidator ID="CustomValidator2" runat="server" 
            ErrorMessage="Er moet minimaal een optie zijn aangevinkt"
            onservervalidate="CustomValidator2_ServerValidate" Display="Dynamic" 
            ForeColor="Red" ValidationGroup="Servergroep"></asp:CustomValidator>
    </p>
     <p>   
        Ontwikkelomgeving (meerdere antwoorden toegestaan)*:<br/>
            <asp:CheckBoxList ID="Ontwikkelomgeving" runat="server" RepeatColumns="2" 
            Width="357px">
                <asp:ListItem Value="0">.Net (C#)</asp:ListItem>
                <asp:ListItem Value="1">Delphi</asp:ListItem>
                <asp:ListItem Value="2">Visual Basic</asp:ListItem>
                <asp:ListItem Value="3">C / C++</asp:ListItem>
                <asp:ListItem Value="4">Web (ASP.NET)</asp:ListItem>
                <asp:ListItem Value="5">Web (ASP/PHP)</asp:ListItem>
            </asp:CheckBoxList>
    <asp:CheckBox ID="CBAnders" runat="server" Text="Anders Namelijk:" />
    <asp:TextBox ID="txtOmgeving" runat="server" Height="18px"></asp:TextBox>
         <asp:CustomValidator ID="CustomValidator3" 
             runat="server" 
             ErrorMessage="Er moet minimaal een optie zijn aangevinkt"
             OnServerValidate="CustomValidator3_ServerValidate" ForeColor="Red" ValidationGroup="Servergroep" 
             ></asp:CustomValidator>
    <br /> 
    </p>
   
    <p lang="NL">Rol binnen projectgroep:
        <asp:RadioButtonList ID="RadioButtonList2" runat="server" 
            RepeatDirection="Horizontal">
            <asp:ListItem Value="Groepsleider" Selected="True">Groepsleider</asp:ListItem>
            <asp:ListItem Value="Configuratiebeheer">Configuratiebeheer</asp:ListItem>
            <asp:ListItem Value="Groepslid">Groepslid</asp:ListItem>
        </asp:RadioButtonList>
    </p>
    <p lang="NL">&nbsp;</p>

    <h2>Ervaring</h2> <hr />
    <p>
        <asp:label runat="server" text="Stagebedrijf"></asp:label>
    &nbsp;
        <asp:TextBox ID="txtBedrijf" runat="server" Height="16px" Width="198px"></asp:TextBox>
        <br />
        <asp:label runat="server" text="Stageopdracht:"></asp:label><br />
        <asp:TextBox ID="txtOpdracht" runat="server" Height="104px" Width="624px"></asp:TextBox>
        <br />
        <asp:label runat="server" text="Overige relevante werkervaring"></asp:label>
        <br />
        <asp:TextBox ID="txtErvaring" runat="server" Height="104px" Width="624px"></asp:TextBox>
    </p>
    <p>
        &nbsp;</p>
    <h2>Competenties</h2>
    <hr />
    <p>
        <asp:label runat="server" text="De volgende technische competenties wil ik tijdens mijn project uitbreiden (minimaal 2):"></asp:label>
        <br />
        <asp:TextBox ID="txtComp" runat="server" Height="104px" Width="624px"></asp:TextBox>
        <br />
        <asp:label runat="server" text="De volgende niet-technische competenties wil ik tijdens mijn project uitbreiden (minimaal 2):"></asp:label>
        <br />
        <asp:TextBox ID="txtNietTechComp" runat="server" Height="104px" Width="624px"></asp:TextBox>
    </p>
    <p>
        &nbsp;</p>
    <h2>Opmerkingen</h2>
    <hr />
    <p> 
        <asp:label runat="server" text="Geef hier eventuele opmerkingen in op:"></asp:label>
        <br />
        <asp:TextBox ID="txtOpmerkingen" runat="server" Height="104px" Width="624px"></asp:TextBox>
    </p>
    <br /> 
    <asp:Button ID="Button1" runat="server" Height="19px" onclick="Button1_Click" 
        Text="Inschrijven" ValidationGroup="Servergroep" />
    <p>
        &nbsp;<asp:ValidationSummary ID="ValidationSummary" 
        title="De volgende fouten zijn opgetreden:" 
        runat="server" DisplayMode="List"/>
    </asp:Content>
